package com.mingdong.second.celue;

public class Context {

	private Stratigy stratigy;
	
	public Context(Stratigy stratigy){
		this.stratigy = stratigy;
	}
	
	public void setStartigy(Stratigy stratigy){
		this.stratigy = stratigy;
	}
	
	public void showPrice(Double s){
		System.out.println("价格"+stratigy.getPrice(s));
	}
}
